package com.ddzh.feign.fallback;

import com.ddzh.feign.UserFeignApi;
import com.ddzh.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserFeignApiFallback implements UserFeignApi {
    @Override
    public User findUserById(String username) {
        User user = new User();
        user.setUsername(username);
        user.setName("服务暂停");
        return user;
    }
}
